package cn.tedu.spring.eg1;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestProduct {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext ac =
                new AnnotationConfigApplicationContext
                        ("cn.tedu.spring.eg1");
        Product1 p = ac.getBean(Product1.class);
        System.out.println(p);
    }
}
